package user

import (
	"server/base"
	"server/common/models/user"
)

type userDao struct{}

func (userDao) GetUserInfoById(userId int64) (user.User, error) {
	var User user.User
	err := base.Mysql.Find(&User, "id = ?", userId).Error
	return User, err
}
